package com.meida.common.mybatis.model;

import com.meida.common.constants.CommonConstants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 分页参数
 *
 * @author zyf
 * @date 2018/07/10
 */
@Data
@ApiModel(value = "PageModel", description = "分页参数")
public class PageModel {
    @ApiModelProperty(value = "当前页", required = true, example = "1")
    private int page = CommonConstants.DEFAULT_PAGE;

    @ApiModelProperty(value = "每页条数", example = "10")
    private int limit = CommonConstants.DEFAULT_LIMIT;

    @ApiModelProperty("排序字段")
    private String sort;

    @ApiModelProperty("排序方式")
    private String order;

    @ApiModelProperty(value = "接口扩展handler名称,需要扩展接口时填写,并在子项目中实现PageInterceptor")
    private String handlerName;

    @ApiModelProperty("表单参数")
    private String params;


}
